package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 商品点赞和收藏业务对象 p_store_product_relation
 *
 * @author ruoyi
 * @date 2022-08-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("商品点赞和收藏业务对象")
public class PStoreProductRelationBo extends BaseEntity {

    /**
     * id
     */
    @ApiModelProperty(value = "id", required = false)
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", required = true)
    private Long uid;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID", required = false)
    private Long productId;

    /**
     * 类型(收藏(collect）、点赞(like))
     */
    @ApiModelProperty(value = "类型(收藏(collect）、点赞(like))", required = true)
    @NotBlank(message = "类型(收藏(collect）、点赞(like))不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 某种类型的商品(普通商品、秒杀商品)
     */
    @ApiModelProperty(value = "某种类型的商品(普通商品、秒杀商品)", required = true)
    @NotBlank(message = "某种类型的商品(普通商品、秒杀商品)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;


}
